<script type="text/javascript">
   $(function() {
      $( "#tabs" ).tabs();
  });
</script>
<div id="content">
<div id="page-heading"><h1>Admin Setting</h1></div>


<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
<tr>
	<th rowspan="3" class="sized">
     <?php echo $this->Html->image('../images/shared/side_shadowleft.jpg', array('alt' => '', 'width' => '20', 'height' => '300')); ?>
  </th>
	<th class="topleft"></th>
	<td id="tbl-border-top">&nbsp;</td>
	<th class="topright"></th>
	<th rowspan="3" class="sized">
     <?php echo $this->Html->image('../images/shared/side_shadowright.jpg', array('alt' => '', 'width' => '20', 'height' => '300')); ?>
  </th>
</tr>
<tr>
	<td id="tbl-border-left"></td>
	<td>
	<div id="content-table-inner">
	
	<table border="0" width="100%" cellpadding="0" cellspacing="0">
	<tr valign="top">
	<td>
                <?php
                    echo $this->Session->flash();
                ?>
                <div id="tabs">
                    <ul>
                        <li><a href="#general">General</a></li>
                    </ul>
                    <div id="general">
                        <?php echo $this->Form->create("$sN", array('action' => 'setting', 'class' => 'form', 'type' => 'file')); ?>
                            <table border="0" cellpadding="0" cellspacing="0"  id="option-form">
                                <tr>
                                    <th valign="top">Email Parsing</th>
                                    <td>
                                        <?php
                                            echo $this->Form->input('Setting.EMAIL_PARSING', array(
                                                                'label'     => false,
                                                                'div'       => false,
                                                                'value'     =>  Setting::get_option('EMAIL_PARSING'),
                                                                'class'     => 'inp-form med')
                                                );     
                                        ?>      
                                    </td>
                                    <td></td> 
                                </tr>
                                <tr>
                                    <th valign="top">SLA</th>
                                    <td>
                                        <?php
                                            $day = (Setting::get_option('DAY') == 1)? 'checked': '';
                                            echo $this->Form->input('Setting.DAY', array(
                                                                'div'       => false,
                                                                'value'     => Setting::get_option('DAY'),
                                                                'type'     => 'checkbox',
                                                                'checked'  => "$day",
                                                                'class'     => 'checkbox')
                                                );     
                                        ?>      
                                        <?php
                                            $hour = (Setting::get_option('HOUR') == 1)? 'checked': '';
                                            echo $this->Form->input('Setting.HOUR', array(
                                                                'div'       => false,
                                                                'value'     => Setting::get_option('HOUR'),
                                                                'type'     => 'checkbox',
                                                                'checked'  => "$hour",
                                                                'class'     => 'checkbox')
                                                );     
                                        ?>      
                                        <?php
                                            $minute = (Setting::get_option('MINUTE') == 1)? 'checked': '';
                                            echo $this->Form->input('Setting.MINUTE', array(
                                                                'div'       => false,
                                                                'value'     => Setting::get_option('MINUTE'),
                                                                'type'     => 'checkbox',
                                                                'checked'  => "$minute",
                                                                'class'     => 'checkbox')
                                                );     
                                        ?>      
                                        <?php
                                            $second = (Setting::get_option('SECOND') == 1)? 'checked': '';
                                            echo $this->Form->input('Setting.SECOND', array(
                                                                'div'       => false,
                                                                'value'     => Setting::get_option('SECOND'),
                                                                'type'     => 'checkbox',
                                                                'checked'  => "$second",
                                                                'class'     => 'checkbox')
                                                );     
                                        ?>      
                                    </td>
                                    <td></td> 
                                </tr>
                                <tr>
                                    <th valign="top">&nbsp;</th>
                                    <td>
                                          &nbsp;
                                    </td>
                                    <td>&nbsp;</td> 
                                </tr>
                                
                                <tr>
                                    <th>&nbsp;</th>
                                    <td valign="top">
                                        <?php echo $this->Form->submit('Submit', array('class' => 'form-submit')); ?>
                                    </td>
                                    <td></td>
                                </tr>
                            </table>

                    <?php echo $this->Form->end();?>     
                    </div>
	</td>
	<td>&nbsp;
</td>
</tr>
<tr>
<td>
   <?php echo $this->Html->image('../images/shared/blank.gif', array('alt' => 'blank', 'width' => '695', 'height' => '1')); ?>
</td>
<td></td>
</tr>
</table>
 
<div class="clear"></div>
 

</div>
<!--  end content-table-inner  -->
</td>
<td id="tbl-border-right"></td>
</tr>
<tr>
	<th class="sized bottomleft"></th>
	<td id="tbl-border-bottom">&nbsp;</td>
	<th class="sized bottomright"></th>
</tr>
</table>
<div class="clear">&nbsp;</div>

</div>
